import request from '@/utils/request'

// 查询货币配置列表
export function listMoneyConfig(query) {
  return request({
    url: '/money/moneyConfig/list',
    method: 'get',
    params: query
  })
}

// 查询货币配置详细
export function getMoneyConfig(id) {
  return request({
    url: '/money/moneyConfig/' + id,
    method: 'get'
  })
}

// 新增货币配置
export function addMoneyConfig(data) {
  return request({
    url: '/money/moneyConfig',
    method: 'post',
    data: data
  })
}

// 修改货币配置
export function updateMoneyConfig(data) {
  return request({
    url: '/money/moneyConfig',
    method: 'put',
    data: data
  })
}

// 删除货币配置
export function delMoneyConfig(id) {
  return request({
    url: '/money/moneyConfig/' + id,
    method: 'delete'
  })
}
